import { GrilIssmWindow } from "../../../../component/window/GrilIssmWindow";
import { ILayer } from "../../../../mvc/interfaces/ILayer";
import { LayerManager } from "../../../manager/LayerManager";
import { ObjCreate } from "../../common/ObjCreate";
import { GTextFormat } from "../../../../common/GTextFormat";
import { FontUtil } from "../../../../common/font/FontUtil";
import { GlobalStyle } from "../../../../common/global/GlobalStyle";
import { CopyConfig } from "../../../resource/CopyConfig";
import { Language } from "../../../../../extend/language/Language";
import { Global } from "../../../../../com/gengine/global/Global";
import { GTextFiled } from "../../../../../com/mui/controls/GTextFiled";
import { GButton } from "../../../../../com/mui/controls/GButton";
type int = number;
//class GirlEnterSecondFloor
    
    export  class GirlEnterSecondFloor extends GrilIssmWindow
    {
        constructor(arg1: ILayer=null)
        {
            super(LayerManager.highestLayer);
            return;
        }

        protected /* override */ createChildren(): void
        {
            super.createChildren();
            this._talk = ObjCreate.createGTextField("", 52, 35, 260, 140, this, new GTextFormat(FontUtil.songtiName, 12, GlobalStyle.color1Uint, null, null, null, null, null, flash.text.TextFormatAlign.LEFT, null, null, null, 3));
            this._talk.wordWrap = true;
            this._talk.multiline = true;
            this._talk.mouseWheelEnabled = false;
            this._talk.autoSize = flash.text.TextFieldAutoSize.LEFT;
            this._talk.htmlText = CopyConfig.instance.getGuildCopyDesc(3);
            this._okBtn = ObjCreate.createGButton(Language.getString(69901), 260, 112, 49, 26, this, "ButtonSpecial");
            this._okBtn.addEventListener(flash.events.MouseEvent.CLICK, this.onOkBtnClick);
            return;
        }

        /* internal  */onOkBtnClick(arg1: Object /* flash.events.MouseEvent */): void
        {
            this.hide();
            return;
        }

        public /* override */ show(arg1: int=0, arg2: int=0): void
        {
            super.show(arg1, arg2);
            if (layer) 
            {
                _layer.setPosition(this, Global.stage.stageWidth / 2 - 350, Global.stage.stageHeight / 2 - 100);
            }
            return;
        }

        /* internal */ /* var */_talk: GTextFiled;

        /* internal */ /* var */_okBtn: GButton;
    }
